cmake_minimum_required(VERSION 3.16.0)
project(BPFLoaderDemo)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

add_definitions(-Wno-format-security)

add_executable(BPFLoader src/main.cpp src/bpf_loader.cpp)
target_include_directories(BPFLoader PUBLIC include)
target_include_directories(BPFLoader PUBLIC third/libbpf/src)
target_include_directories(BPFLoader PUBLIC third/elfio)

